<?php
/**
 * 模板框架
 */

use backend\assets\AppAsset;
use yii\helpers\Html;

AppAsset::register($this);

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?> - 康之源管理平台</title>
    <?php $this->head() ?>

    <?php if (isset($this->blocks['headCss'])): ?>
        <?= $this->blocks['headCss'] ?>
    <?php endif; ?>
    <?php if (isset($this->blocks['headJs'])): ?>
        <?= $this->blocks['headJs'] ?>
    <?php endif; ?>

</head>
<body>
<?php $this->beginBody() ?>

<div class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">

    <div class="page-header navbar navbar-fixed-top">
        <div class="page-header-inner">
            <div class="page-logo">
                <h4 style=""><a class="font-red" href="/">UB369 <span class="font-grey-salt" style="font-size: 0.6em;">后台管理系统</a></span></h4>
                <div class="menu-toggler sidebar-toggler"> </div>
            </div>
            <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a>
            <div class="top-menu">
                <ul class="nav navbar-nav pull-right">
                    <li class="dropdown dropdown-user">
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false">

                            <span class="username username-hide-on-mobile"> <?=Yii::$app->session->get('ADMIN_REAL_NAME');?> </span>
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-default">
                            <li><a href="/admin/change-profile.html"><i class="icon-user"> 修改资料</i></a></li>
                            <li><a href="/admin/change-password.html"><i class="icon-key"> 修改密码</i></a></li>
                            <li class="divider"> </li>
                            <li><a href="/login/out.html"><i class="icon-logout"> 退出</i></a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="page-container">

        <!-- SIDEBAR -->
        <div class="page-sidebar-wrapper">
            <div class="page-sidebar navbar-collapse collapse">
                <ul class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top 20px;">
                    <li class="sidebar-toggler-wrapper hide">
                        <div class="sidebar-toggler"> </div>
                    </li>
                    <li class="sidebar-search-wrapper">
                        <form class="sidebar-search  " action="" method="post">
                            <a href="javascript:;" class="remove">
                                <i class="icon-close"></i>
                            </a>
                            <div class="input-group">
                                <input type="text" class="form-control" placeholder="搜索用户...">
                                    <span class="input-group-btn">
                                        <a href="javascript:;" class="btn submit">
                                            <i class="icon-magnifier"></i>
                                        </a>
                                    </span>
                            </div>
                        </form>
                    </li>
                    <li class="heading"><h3>菜单</h3></li>
                    <!--系统后台菜单-->
                    <?=\backend\widgets\MainMenu::widget();?>

                </ul>
            </div>
        </div>

        <div class="page-content-wrapper">
            <div class="page-content">
                <!--页面工具栏-->
                <div class="page-bar">
                    <ul class="page-breadcrumb">
                        <li>
                            <a href="/index.html">首页</a>
                            <i class="fa fa-circle"></i>
                        </li>
                        <li>
                            <span><?=$this->title?></span>
                        </li>
                    </ul>
                    <div class="page-toolbar">
                        <div id="dashboard-report-range" class="pull-right tooltips btn btn-sm" data-container="body" data-placement="bottom" data-original-title="Change dashboard date range">
                            <i class="icon-calendar"></i>&nbsp;
                            <span class="thin uppercase hidden-xs"><?=date('Y-m-d H:i:s')?></span>&nbsp;
                            <i class="fa fa-angle-down"></i>
                        </div>
                    </div>
                </div>

                <p></p>

                <?php

                \yii\widgets\Pjax::begin();
                echo $content;
                \yii\widgets\Pjax::end();
                ?>

            </div>
        </div>
    </div>

    <div class="page-footer">
        <div class="page-footer-inner"> <?=date('Y')?> © 康之源.</div>
        <div class="scroll-to-top" style="display: none;">
            <i class="icon-arrow-up"></i>
        </div>
    </div>

</div>

<?php $this->endBody() ?>

<?php if (isset($this->blocks['footJs'])): ?>
    <?= $this->blocks['footJs'] ?>
<?php endif; ?>

</body>
</html>
<?php $this->endPage() ?>
